import com.sven.dubbospi.Driver;
import org.apache.dubbo.common.extension.ExtensionLoader;
import org.junit.Test;

public class SpiMian2 {

    //dubbo spi扩展点实现
    @Test
    public void test2() {
        ExtensionLoader<Driver> extensionLoader = ExtensionLoader.getExtensionLoader(Driver.class);
        Driver driver = extensionLoader.getExtension("mysqlDriver");
        System.out.println(driver.connect());
    }

}
